package at.fhooe.swa.client.domain;

public abstract class AbstractSensor implements ISensor
{

	private String key;
	private String displayLabel;
	private String unit;
	private Object currentValue;
	
	protected AbstractSensor(String key, String displayLabel, String unit)
	{
		this.key = key;
		this.displayLabel = displayLabel;
		this.unit = unit;
	}
	
	@Override
	public String getDisplayLabel()
	{
		return displayLabel;
	}

	@Override
	public String getUnit()
	{
		return unit;
	}

	@Override
	public String getKey()
	{
		return key;
	}

	@Override
	public Object getCurrentValue()
	{
		return currentValue;
	}
	
	@Override
	public void setCurrentValue(Object currentValue)
	{
		this.currentValue = currentValue;
	}
	
}
